import pandas as pd
data = {
    'Name': ['Alice', 'Bob', 'Charlie'],
    'Age': [25, 30, 35],
    'Score': [88.5, 92.0, 78.5]
}
df = pd.DataFrame(data)

# 从DataFrame中提取Series
age_series = df['Age']
print(type(age_series))  # <class 'pandas.core.series.Series'>

# 将Series添加为DataFrame的新列
df['Age_Squared'] = df['Age'] ** 2
print(df)
